package org.example.struct.array;

/**
 * @author liyishan
 * @date 2024/8/8 09:48
 * @apiNote
 */

public class Test00709ToLowerCase {
    public String toLowerCase(String s) {
        for(int i = 0; i < s.length(); i++){
            char c = s.charAt(i);
            if(c >= 'A' && c <= 'Z'){
                s = s.replace(c, (char)(c - 'A' + 'a'));
            }
        }
        return s;
    }

    public String toLowerCase1(String s) {
        return s.toLowerCase();
    }
}
